package com.srwl.mytx.domain;

import android.os.Parcel;
import android.os.Parcelable;

import com.srwl.mytx.domain.LatLng;

public class ImLatLng extends LatLng {
    private String address;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.address);
    }

    public ImLatLng() {
    }

    protected ImLatLng(Parcel in) {
        super(in);
        this.address = in.readString();
    }

    public static final Parcelable.Creator<ImLatLng> CREATOR = new Parcelable.Creator<ImLatLng>() {
        @Override
        public ImLatLng createFromParcel(Parcel source) {
            return new ImLatLng(source);
        }

        @Override
        public ImLatLng[] newArray(int size) {
            return new ImLatLng[size];
        }
    };
}
